package org.waddy.framework.app.model.dao;

import java.util.List;

import org.waddy.framework.app.exception.AppException;
import org.waddy.framework.app.exception.SysException;
import org.waddy.framework.app.vo.GenericVO;



public interface ISDAO extends IDAO{
	
	
	/**
	 * 根据主键查vo
	 * 
	 * @param vo
	 * @return
	 */
	public GenericVO findByPK(GenericVO vo)throws AppException,SysException;
	
	
	/**
	 * 添加
	 * 
	 * @param vo
	 */
	public void add(GenericVO vo)throws AppException,SysException;
	
	/**
	 * 批量添加
	 * 
	 * @param vos **************add by xieYunchao 110623 需要用到此接口
	 */
	public void addBat(List vos)throws AppException,SysException;
	
	
	/**
	 * 修改
	 * 
	 * @param vo
	 */
	public void update(GenericVO vo)throws AppException,SysException;
	
	
	/**
	 * 根据主键删除
	 * 
	 * @param vo
	 */
	public void delete(GenericVO vo)throws AppException,SysException;
	
	
	

	
	/**
	 * 修改状态为停用
	 * @param vo
	 */
	//public void unable(GenericVO vo)throws AppException,SysException;
	
	
	/**
	 * 根据vo查询
	 * 
	 * @param vo
	 * @return 
	 */
	public List findByVO(GenericVO vo)throws AppException,SysException;
	
}
